package com.topone.service.impl;

import com.topone.dataObject.Sysuser;
import com.topone.repository.SysuserRepository;
import com.topone.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysuserRepository sysuserRepository;

    public Sysuser login(Sysuser sysuser){
        return  sysuserRepository.findByUserNameAndPassword(sysuser.getUserName(),
                sysuser.getPassword());
    }
}
